<include file="Market:leftmenu" />
<link rel="stylesheet" href="__STATIC__admin/css/diy.css">
<link rel="stylesheet" href="__STATIC__admin/css/game.css">
<link rel="stylesheet" href="__STATIC__admin/css/edit_game.css">
<script src="__STATIC__admin/js/laydate/laydate.js"></script>

<div class="content-right fl">
 

    <h1 class="content-right-title">添加幸运大转盘</h1>
    
    
<ul class="wizard" id="editGameCgTabs">
    <li class="wizard-item process">
        <dl class="wizard-item-content">
            <dt class="wizard-ic-step">
                <span class="wizard-icstp-num">1</span>
                <span class="wizard-icstp-title">添加活动</span>
            </dt>
            <dd class="wizard-ic-desc"></dd>
        </dl>
    </li>
    <li class="wizard-item">
        <dl class="wizard-item-content">
            <dt class="wizard-ic-step">
                <span class="wizard-icstp-num">2</span>
                <span class="wizard-icstp-title">活动设置</span>
            </dt>
            <dd class="wizard-ic-desc"></dd>
        </dl>
    </li>
    <li class="wizard-item">
        <dl class="wizard-item-content">
            <dt class="wizard-ic-step">
                <span class="wizard-icstp-num">3</span>
                <span class="wizard-icstp-title">奖项设置</span>
            </dt>
            <dd class="wizard-ic-desc"></dd>
        </dl>
    </li>
    <li class="wizard-item">
        <dl class="wizard-item-content">
            <dt class="wizard-ic-step">
                <span class="wizard-icstp-num">4</span>
                <span class="wizard-icstp-title">完成</span>
            </dt>
        </dl>
    </li>
</ul>
<!-- end wizard -->
<form id="gameform" action="/Ump/add_game/" method="POST">
	<input type="hidden" name="type" value="1">
	<input type="hidden" name="id" value="">
	<input type="hidden" id="j-gametype" value="1">
    <input type="hidden" class="coupon" value="[]">
	<input class="j-verify" name="" value="" type="hidden">
	<div class="diy clearfix mgt20">
		<div id="diy-phone">
			<div class="diy-phone-header">
				<i class="diy-phone-receiver"></i>
				<div class="diy-phone-title">幸运大转盘</div>
			</div>
			<div class="diy-phone-contain">
		<div class="game-wheel-bg">
			<div class="membersbox">
			    <div id="main">
			        <div class="msg wheel_msg"></div>
			        <div class="demo wheel_box">
			            <div id="disk" class="wheel_disk"></div>
			            <div id="start" class="wheel_start">
			                <img src="__STATIC__admin/images/wheel2.png" id="startbtn" style="-webkit-transform: rotate(0deg);">
			            </div>
			        </div>
			        <div class="roll_top">
			            <b>游戏奖品：</b>
			            <ul>
			                <li>一等奖：</li>
			                <li>二等奖：</li>
			                <li>三等奖：</li>
			                <li>普通奖：</li>
			            </ul>
			        </div>
		            
		            
			    </div>
			</div>
		</div>
	</div>
			<i class="diy-phone-footer"></i>
		</div>
		<!-- end diy-phone -->
		<div id="diy-ctrl">
			<div class="diy-ctrl-item" data-step="0" style="margin-top:128px;">
				<div class="formitems">  
				    <label class="fi-name"><span class="colorRed">*</span>活动名称：</label>  
				    <div class="form-controls">  
				        <input type="text" placeholder="" class="input" name="title" value="">
				        <span class="fi-help-text"></span>
				    </div>  
				</div>
				<div class="formitems">  
				    <label class="fi-name"><span class="colorRed">*</span>开始时间：</label>  
				    <div class="form-controls">  
				    	<input type="text" name="starttime" id="starttime" value="" class="input Wdate j-render">
				        <span class="fi-help-text"></span>
				    </div>  
				</div>
				<div class="formitems">  
				    <label class="fi-name"><span class="colorRed">*</span>结束时间：</label>  
				    <div class="form-controls">  
				    	<input type="text" name="endtime" id="endtime" value="" class="input Wdate j-render">
				        <span class="fi-help-text"></span>
				    </div>  
				</div>
				<div class="formitems">
					<label class="fi-name">活动说明：</label>
					<div class="form-controls">
						<textarea name="description" id="" class="textarea j-render"></textarea>
						<span class="fi-help-text"></span>
					</div>
				</div>
			</div>
			<!-- end diy-ctrl-item step-0 -->

			<div class="diy-ctrl-item" data-step="1" style="margin-top:128px;display:none;">
				<div class="formitems">  
				    <label class="fi-name"><span class="colorRed">*</span>可参与的会员：</label>  
				    <div class="form-controls">  
				    	<select name="rankid" class="select">
                            <option value="0">所有会员</option>
					        <option value="2087575">店铺客户</option><option value="2087576">普通会员</option><option value="2087577">高级会员</option><option value="2087578">VIP会员</option><option value="2087579">至尊VIP会员</option>				    	</select>
				        <span class="fi-help-text"></span>
				    </div>  
				</div>
				<div class="formitems">  
				    <label class="fi-name"><span class="colorRed">*</span>消耗积分：</label>  
				    <div class="form-controls">  
				    	<input type="text" name="costpoint" class="input mini" value="">
				        <span class="fi-help-text">用户参与需要消耗积分，值为0时不消耗</span>
				    </div>  
				</div>
				<div class="formitems">  
				    <label class="fi-name">参与送积分：</label>  
				    <div class="form-controls">  
				    	<input type="text" class="input mini" name="givepoint" value="">
				    	<div class="radio-group">
				    		<label><input type="checkbox" name="givepointtonoprizeonly" value="1" class="checkbox">仅送给未中奖的用户</label>
				    	</div>
				        <span class="fi-help-text">值为0时不赠送积分</span>
				    </div>  
				</div>
				<div class="formitems">
					<label class="fi-name"><span class="colorRed">*</span>参与次数：</label> 
					<div class="form-controls">
						<div class="radio-group">
							<label><input type="radio" name="timelimit" value="0" checked="">一天一次</label>
							<label><input type="radio" name="timelimit" value="1">一人一次</label>
							<label><input type="radio" name="timelimit" value="2">一天两次</label>
						</div>
						<span class="fi-help-text"></span>
					</div>
				</div>
			</div>
			<!-- end diy-ctrl-item step-1-->

			<div class="diy-ctrl-item" data-step="2" style="margin-top:128px;display:none;">

				<!-- end 中奖概率 -->
				<input type="hidden" name="prize_type[1]" value="">
				<input type="hidden" name="prize_type[2]" value="">
				<input type="hidden" name="prize_type[3]" value="">
				<input type="hidden" name="prize_type[4]" value="">
				<div class="prize-divider-title"><i></i><span>奖品设置</span></div>
				<div class="spoils-item" data-index="1">
					<h3 class="cst_h3">一等奖</h3>
					<input type="hidden" name="goods_item" value="" data-compress="" data-pic="" data-coupon="" data-points="">
					<div class="formitems">
						<label for="" class="fi-name"><span class="colorRed">*</span>奖品类别：</label>
						<div class="form-controls">
							<label class="spoilstyle" for="score1"><input type="radio" name="scoretype[1]" checked="" value="0" id="score1">赠送积分</label>
							<label class="spoilstyle" for="coupon1"><input type="radio" name="scoretype[1]" value="1" id="coupon1">赠送优惠券</label>
							<label class="spoilstyle" for="goods1"><input type="radio" name="scoretype[1]" value="2" id="goods1">赠送商品</label>
						</div>
					</div>
					<div class="formitems j-getspoils">
						<label class="fi-name"><span class="colorRed">*</span>赠送积分：</label>  
						    <div class="form-controls"> 
						    	<input type="text" class="input j-prize-render j-stepVerify" data-index="1" name="prizepoints[1]" value="">
						        <span class="fi-help-text"></span>
						    </div>																	</div>
                    <div class="formitems">
                        <label class="fi-name"><span class="colorRed">*</span>奖品名称：</label>
                        <div class="form-controls">
                            <input type="text" class="input js-prizetitle" name="prizetitle[1]" value="">
                            <span class="fi-help-text"></span>
                        </div>
                    </div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>奖品数量：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input j-stepVerify" name="prizenum[1]" value="">
					        <span class="fi-help-text">奖品数量为0时不设此奖项</span>
					    </div>  
					</div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>中奖率：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input mini j-stepVerify" name="probability[1]" value="">%
					        <span class="fi-help-text">中奖率必须为整数</span>
					    </div>  
					</div>
				</div>
				<div class="spoils-item" data-index="2">
					<h3 class="cst_h3">二等奖</h3>
					<input type="hidden" name="goods_item" value="" data-compress="" data-pic="" data-coupon="" data-points="">
					<div class="formitems">
						<label for="" class="fi-name"><span class="colorRed">*</span>奖品类别：</label>
						<div class="form-controls">
							<label class="spoilstyle" for="score2"><input type="radio" name="scoretype[2]" checked="" value="0" id="score2">赠送积分</label>
							<label class="spoilstyle" for="coupon2"><input type="radio" name="scoretype[2]" value="1" id="coupon2">赠送优惠券</label>
							<label class="spoilstyle" for="goods2"><input type="radio" name="scoretype[2]" value="2" id="goods2">赠送商品</label>
						</div>
					</div>
					<div class="formitems j-getspoils"> 
					 	<label class="fi-name"><span class="colorRed">*</span>赠送积分：</label>  
						    <div class="form-controls">  
						    	<input type="text" class="input j-prize-render j-stepVerify" data-index="2" name="prizepoints[2]" value="">
						        <span class="fi-help-text"></span>
						    </div>						 
											</div>
                    <div class="formitems">
                        <label class="fi-name"><span class="colorRed">*</span>奖品名称：</label>
                        <div class="form-controls">
                            <input type="text" class="input js-prizetitle" name="prizetitle[2]" value="">
                            <span class="fi-help-text"></span>
                        </div>
                    </div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>奖品数量：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input j-stepVerify" name="prizenum[2]" value="">
					        <span class="fi-help-text">奖品数量为0时不设此奖项</span>
					    </div>  
					</div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>中奖率：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input mini j-stepVerify" name="probability[2]" value="">%
					        <span class="fi-help-text">中奖率必须为整数</span>
					    </div>  
					</div>
				</div>
				<div class="spoils-item" data-index="3">
					<h3 class="cst_h3">三等奖</h3>
					<input type="hidden" name="goods_item" value="" data-compress="" data-pic="" data-coupon="" data-points="">
					<div class="formitems">
						<label for="" class="fi-name"><span class="colorRed">*</span>奖品类别：</label>
						<div class="form-controls">
							<label class="spoilstyle" for="score3"><input type="radio" name="scoretype[3]" checked="" value="0" id="score3">赠送积分</label>
							<label class="spoilstyle" for="coupon3"><input type="radio" name="scoretype[3]" value="1" id="coupon3">赠送优惠券</label>
							<label class="spoilstyle" for="goods3"><input type="radio" name="scoretype[3]" value="2" id="goods3">赠送商品</label>
						</div>
					</div>
					<div class="formitems j-getspoils">  
						<label class="fi-name"><span class="colorRed">*</span>赠送积分：</label>  
						    <div class="form-controls">  
						    	<input type="text" class="input j-prize-render j-stepVerify" data-index="3" name="prizepoints[3]" value="">
						        <span class="fi-help-text"></span>
						    </div>					    					    					</div>
                    <div class="formitems">
                        <label class="fi-name"><span class="colorRed">*</span>奖品名称：</label>
                        <div class="form-controls">
                            <input type="text" class="input js-prizetitle" name="prizetitle[3]" value="">
                            <span class="fi-help-text"></span>
                        </div>
                    </div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>奖品数量：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input j-stepVerify" name="prizenum[3]" value="">
					        <span class="fi-help-text">奖品数量为0时不设此奖项</span>
					    </div>  
					</div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>中奖率：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input mini j-stepVerify" name="probability[3]" value="">%
					        <span class="fi-help-text">中奖率必须为整数</span>
					    </div>  
					</div>
				</div>
				<div class="spoils-item" data-index="4">
					<h3 class="cst_h3">普通奖</h3>
					<input type="hidden" name="goods_item" value="" data-compress="" data-pic="" data-coupon="" data-points="">
					<div class="formitems">
						<label for="" class="fi-name"><span class="colorRed">*</span>奖品类别：</label>
						<div class="form-controls">
							<label class="spoilstyle" for="score4"><input type="radio" name="scoretype[4]" checked="" value="0" id="score4">赠送积分</label>
							<label class="spoilstyle" for="coupon4"><input type="radio" name="scoretype[4]" value="1" id="coupon4">赠送优惠券</label>
							<label class="spoilstyle" for="goods4"><input type="radio" name="scoretype[4]" value="2" id="goods4">赠送商品</label>
						</div>
					</div>
					<div class="formitems j-getspoils">  
						<label class="fi-name"><span class="colorRed">*</span>赠送积分：</label>  
						    <div class="form-controls">  
						    	<input type="text" class="input j-prize-render j-stepVerify" data-index="4" name="prizepoints[4]" value="">
						        <span class="fi-help-text"></span>
						    </div>					    					    					</div>
                    <div class="formitems">
                        <label class="fi-name"><span class="colorRed">*</span>奖品名称：</label>
                        <div class="form-controls">
                            <input type="text" class="input js-prizetitle" name="prizetitle[4]" value="">
                            <span class="fi-help-text"></span>
                        </div>
                    </div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>奖品数量：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input j-stepVerify" name="prizenum[4]" value="">
					        <span class="fi-help-text">奖品数量为0时不设此奖项</span>
					    </div>  
					</div>
					<div class="formitems">  
					    <label class="fi-name"><span class="colorRed">*</span>中奖率：</label>  
					    <div class="form-controls">  
					    	<input type="text" class="input mini j-stepVerify" name="probability[4]" value="">%
					        <span class="fi-help-text">中奖率必须为整数</span>
					    </div>  
					</div>

				</div>

				


				
				<!-- end 奖品设置 -->

				<div class="prize-divider-title"><i></i><span>中奖结果说明</span></div>
				<div class="formitems">  
				    <label class="fi-name"><span class="colorRed">*</span>未中奖说明：</label>  
				    <div class="form-controls">  
				    	<textarea name="failtext" class="textarea"></textarea>
                        <span class="fi-help-text"></span>
				    </div>  
				</div>
			</div>
			<!-- end diy-ctrl-item step-2-->

			<div class="diy-ctrl-item" data-step="3" style="margin-top:128px;display:none;">
				<p class="txtCenter bold ftsize18">您已成功创建该活动</p>
				<div class="prize-divider-title"><i></i></div>

				<div class="formitems">  
				    <label class="fi-name">链接地址：</label>  
				    <div class="form-controls pdt3">
				    	<span class="copylink-pretext max300">http://mp.wxfenxiao.com/Ump/edit_game_zp.html</span>
				    	<a href="javascript:;" data-copy="http://mp.wxfenxiao.com/Ump/edit_game_zp.html" class="btn btn-success j-copy">复制</a>
				    </div>
				</div>
				<div class="formitems">  
				    <label class="fi-name">二维码：</label>  
				    <div class="form-controls pdt3">
				    	<img src="/Public/images/test/02.png" alt="">
				    </div>
				</div>
			</div>
		</div>
		<!-- end diy-ctrl -->
	</div>
	<!-- end diy -->

	<div class="diy-actions txtCenter">
		<div class="btn-step" data-step="0">
			<a href="javascript:;" class="btn btn-primary j-diyNextBtn">下一步</a>
		</div>
		<div class="btn-step" data-step="1" style="display:none;">
			<a href="javascript:;" class="btn j-diyPrevBtn">上一步</a>
			<a href="javascript:;" class="btn btn-primary j-diyNextBtn">下一步</a>
		</div>
		<div class="btn-step" data-step="2" style="display:none;">
			<a href="javascript:;" class="btn j-diyPrevBtn">上一步</a>
			<button type="submit" class="btn btn-primary" name="st" value="2">提交</button>
		</div>
		<div class="btn-step" data-step="3" style="display:none;">
			<a href="javascript:;" class="btn btn-primary">完成</a>
		</div>
	</div>
</form>

</div>

<script>
var start = {
    elem: '#starttime',
    format: 'YYYY-MM-DD hh:mm:ss',
    min: laydate.now(), //设定最小日期
    max: '2020-11-01 00:00:00', //最大日期为当前日期
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end = {
    elem: '#endtime',
    format: 'YYYY-MM-DD hh:mm:ss',
    min: laydate.now(), //设定最小日期
    max: '2020-11-01 00:00:00', //最大日期为当前日期
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};
laydate(start);
laydate(end);
</script>